<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo ($title); ?></title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,客户中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/Public/static/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Public/static/admin/css/font-awesome.min93e3.css" rel="stylesheet">
    <link href="/Public/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/Public/static/admin/css/animate.min.css" rel="stylesheet">
    <link href="/Public/static/admin/css/style.min.css" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h2>修改客户信息</h2>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" name="save" id="save" action="<?php echo U('Member/save');?>">
                        <input type="hidden" name="id" value="<?php echo ($info["id"]); ?>">
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">账号</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="请填写账号" id="account" name="account" value="<?php echo ($info["account"]); ?>" data-id="<?php echo ($info["id"]); ?>" class="form-control">
                            </div>
                        </div>
                        <!--<div class="hr-line-dashed"></div>-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label">昵称</label>-->
                            <!--<div class="col-sm-10">-->
                                <!--<input type="text" placeholder="请填写昵称" name="nick" id="nick" class="form-control">-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="hr-line-dashed"></div>-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label">密码</label>-->
                            <!--<div class="col-sm-10">-->
                                <!--<input type="password" placeholder="请填写密码" name="pawd" id="pw" class="form-control">-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="hr-line-dashed"></div>-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label">重复密码</label>-->
                            <!--<div class="col-sm-10">-->
                                <!--<input type="password" placeholder="请填写密码" name="repawd" id="repw" class="form-control">-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="hr-line-dashed"></div>-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label">客户姓名</label>-->
                            <!--<div class="col-sm-10">-->
                                <!--<input type="text" placeholder="请填写姓名" name="name" id="name" class="form-control">-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="hr-line-dashed"></div>-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label">性别</label>-->

                            <!--<div class="col-sm-10">-->
                                <!--<select class="form-control m-b" name="sex">-->
                                    <!--<option value="1">男</option>-->
                                    <!--<option value="0">女</option>-->
                                <!--</select>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="hr-line-dashed"></div>-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label">客户电话</label>-->
                            <!--<div class="col-sm-10">-->
                                <!--<input type="text" placeholder="请填写电话" name="tel" class="form-control">-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="hr-line-dashed"></div>-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label">客户QQ</label>-->
                            <!--<div class="col-sm-10">-->
                                <!--<input type="text" placeholder="请填写QQ" name="qq" class="form-control">-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="hr-line-dashed"></div>-->
                        <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label">客户生日</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" placeholder="请填写生日"  name="birthday" class="form-control">-->
                        <!--</div>-->
                    <!--</div>-->
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" id="button" type="submit">修改</button>
                                <a href="javascript:history.go(-1)" class="btn btn-white" type="submit">取消</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/Public/static/admin/js/jquery.min.js"></script>
<script src="/Public/static/admin/js/jquery.form.js"></script>
<script src="/Public/static/admin/js/common.js"></script>
<script src="/Public/static/public/layui/lay/dest/layui.all.js"></script>
</body>
<script>
    $(function(){
        $('#save').ajaxForm({
            beforeSubmit:checkForm,
            success: complete,
            dataType: 'json'
        });
        function checkForm(){
            if($('#account').val() == ''){
            sxshop.error('账号不能为空');
                return false;
            }
        }
        function complete(date){
            if(date.state > 0){
                sxshop.error(date.msg);
                    return false;
            }else{
                sxshop.success(date.msg,'<?php echo U("Member/member_list");?>');
            }
        }
    })
</script>
</html>